﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApplication4
{
    class Program
    {

        public Program()
        {
        }
        public delegate void putout(string words);

        private void putenglish(string words)
        {
            Console.WriteLine("goodmorning " + words);
        }

        private void putchinese(string words)
        {
            Console.WriteLine("早上好 " + words);
        }

        private void doit(String name, putout pt)
        {
            pt(name);
        }
        static void Main(string[] args)
        {
            Program p = new Program();
            p.doit("panhaonan", p.putenglish);
            p.doit("潘浩楠", p.putchinese);
            Console.WriteLine("再一次提交");
            Console.WriteLine("第三次提交");
            Console.WriteLine("第四次提交");
            Console.WriteLine("diliuci");
            Console.WriteLine("666");
            Console.WriteLine("777");


            Console.ReadKey();

        }
    }
}

